package com.fay.basic.collection.map;

import java.util.Map;
import java.util.TreeMap;

/**
 * @Title:
 * @Description:
 * @Author Fay Wang
 * @Date 2022/5/10 16:54
 * @Version 1.0
 */
public class TreeMapTest {
    public static void main(String[] args) {
        Map<String,String> map = new TreeMap<>();
        map.put("1", "1");
        map.put("4", "4");
        map.put("2", "2");
        map.put("2", "3");
        // 注意排序
        System.out.println(map);
    }
}
